﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="signup.aspx.cs" Inherits="signup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
    .style8
    {
        width: 185px;
    }
    .style9
    {
        width: 160px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
    
        SelectCommand="SELECT * FROM [users] WHERE (([username] = @username) AND ([password] = @password))">
    <SelectParameters>
        <asp:ControlParameter ControlID="TextBox1" Name="username" PropertyName="Text" 
            Type="String" />
        <asp:ControlParameter ControlID="TextBox2" Name="password" PropertyName="Text" 
            Type="String" />
    </SelectParameters>
</asp:SqlDataSource>

<asp:Label ID="Label1" runat="server" ForeColor="Red" 
    Text="სახელი ან პაროლი არასწორია" Visible="False"></asp:Label>
<table class="style1">
    <tr>
        <td class="style8">
            სახელი</td>
        <td class="style9">
            <asp:TextBox ID="TextBox1" runat="server" Width="164px"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style8">
            პაროლი</td>
        <td class="style9">
            <asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="166px"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style8">
            &nbsp;</td>
        <td>
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                style="margin-left: 16px; margin-top: 8px" Text="შესვლა" Width="138px" />
        </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent1" Runat="Server">
</asp:Content>


